package pc.system;

public class SysLog extends Actions
{
  //private Actions owner = null;
  private String msg = null;

  public SysLog(Actions owner)
  {
    super(owner);
    //this.owner = owner;
  }

  public void setMessage(String msg)
  {
    this.msg = msg;
  }

  public String getMessage()
  {
    return msg;
  }

  public void showMessage()
  {
    if (msg != null) {
      getResponse().print("<script language='JavaScript'>");
      getResponse().print("alert('" + msg + "')");
      getResponse().print("</script>");
      msg = null;
    }
  }
}
